import request from '@/utils/request'

// 查询拒付列表
export function listRefusalRecords(query) {
  return request({
    url: '/system/refusalRecords/list',
    method: 'get',
    params: query
  })
}
export function listRefusalRecordsAdmin(query) {
  return request({
    url: '/system/refusalRecords/adminList',
    method: 'get',
    params: query
  })
}
// 查询拒付详细
export function getRefusalRecords(id) {
  return request({
    url: '/system/refusalRecords/' + id,
    method: 'get'
  })
}

// 新增拒付
export function addRefusalRecords(data) {
  return request({
    url: '/system/refusalRecords',
    method: 'post',
    data: data
  })
}

// 修改拒付
export function updateRefusalRecords(data) {
  return request({
    url: '/system/refusalRecords',
    method: 'put',
    data: data
  })
}

// 删除拒付
export function delRefusalRecords(id) {
  return request({
    url: '/system/refusalRecords/' + id,
    method: 'delete'
  })
}

//合计
export function sumRefusalRecords(data) {
  return request({
    url: '/system/refusalRecords/sum',
    method: 'post',
    data: data
  })
}
//同步收益
export function synRefusalRecords() {
  return request({
    url: '/system/refusalRecords/syn',
    method: 'post',
  })
}


//全部统计
export function allSummary(data) {
  return request({
    url: '/system/refusalRecords/allSummary',
    method: 'post',
    data: data
  })
}

//个人统计
export function mySummary(data) {
  return request({
    url: '/system/refusalRecords/mySummary',
    method: 'post',
    data: data
  })
}
